/*************************************************************************
	> File Name: P2404.cpp
	> Author: yufangze
	> Mail: 2224590123@qq.com
	> Created Time: 2024-12-16 11:05:11
 ************************************************************************/

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;

int val[10];

void output(int n) {
    for (int i = 0; i < n; i++) {
        if (i) cout << "+";
        cout << val[i];
    }
    cout << endl;
    return ;
}

void dfs(int x, int k, int start) {
    if (x <= 0) {
        if (x == 0 && k > 1) {
            output(k);
        }
        return ;
    }
    for (int i = start; i <= x; i++) {
        val[k] = i;
        dfs(x - i, k + 1, i);
    }
    return ;
}

int main() {
    int n;
    cin >> n;
    dfs(n, 0, 1);
    return 0;
}
